package com.prs.crm.domain.stock;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.prs.crm.domain.BaseEntity;
import com.prs.crm.domain.store.StoreRoom;

/**
 *库存预警
 * 
 * @author Administrator
 * 
 */
@Entity
@Table(name = "stock_alert")
public class StockAlert extends BaseEntity {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	private Integer id;
	@ManyToOne
	
	private Product product;

	@ManyToOne
	private StoreRoom storeRoom;
	private double maxNumber;
	private double minNumber;
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public Product getProduct() {
		return product;
	}
	public void setProduct(Product product) {
		this.product = product;
	}
	public StoreRoom getStoreRoom() {
		return storeRoom;
	}
	public void setStoreRoom(StoreRoom storeRoom) {
		this.storeRoom = storeRoom;
	}
	public double getMaxNumber() {
		return maxNumber;
	}
	public void setMaxNumber(double maxNumber) {
		this.maxNumber = maxNumber;
	}
	public double getMinNumber() {
		return minNumber;
	}
	public void setMinNumber(double minNumber) {
		this.minNumber = minNumber;
	}
}
